package org.h.apiinterface.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/name")
public class NameController {


    @GetMapping("/get")
    public String getName(String name) {
        return "GET" + name;
    }

    @PostMapping("/post")
    public String postName(String name) {
        return "POST" + name;
    }









}
